<?php
namespace app\serverauthcode\validate;

use \app\manage\validate\BaseValidate;
/**
 * Created by PhpStorm.
 * User: 97606
 * Date: 2017/6/14
 * Time: 16:17
 */
class AuthCode extends BaseValidate
{
    protected $rule = [
        "token"       => ['require'],
        "appkey"      => ['require'],
        "type"        => ['require'],
        "code_id"     => ['require'],
        "auth_code"   => ['require'],
    ];

    protected $message = [

    ];

    protected $scene = [
        "createAuthCode"    => ["token","appkey","type","code_id"],
        "verifyAuthCode" => ["token","appkey","type","code_id","auth_code"],
    ];
}